Skip to content

Fix release workflows#586

Merged
shibd merged 1 commit into
apache:mainfrom
BewareMyPower:bewaremypower/fix-release-ci
Jun 2, 2026
Merged

Fix release workflows#586
shibd merged 1 commit into
apache:mainfrom
BewareMyPower:bewaremypower/fix-release-ci

Conversation

@BewareMyPower
Copy link
Copy Markdown
Contributor

@BewareMyPower BewareMyPower commented Jun 1, 2026

fixes #585
fixes #559

All changes are in place. Here's a summary of what was done:


Changes Made

1. ci-build-binary-artifacts.yaml

Fix 1 — Native arm64 runners:

  • Added runner field to the CPU matrix: x86_64ubuntu-22.04, arm64ubuntu-22.04-arm
  • Changed runs-on: ubuntu-22.04runs-on: ${{matrix.cpu.runner}}
  • Removed Set up QEMU step entirely (not needed when each architecture runs on its own native runner)

Fix 2 — vcpkg binary cache:

  • Added actions/cache@v4 step to restore/save ~/.cache/vcpkg/archives for all 6 Linux jobs (keyed by pkg-type + arch + vcpkg.json hash)
  • Added the same for macOS (~/Library/Caches/vcpkg/archives)
  • Fixed Docker GHA layer cache to use per-job scope to avoid the 6 matrix jobs thrashing each other's cache

2. All 6 docker-build-{type}-{arch}.sh scripts

  • Added mkdir -p $HOME/.cache/vcpkg/archives before docker run
  • Added -v $HOME/.cache/vcpkg/archives:/root/.cache/vcpkg/archives volume mount so vcpkg inside the container reads/writes the cache restored by actions/cache on the runner host

Expected result: On the next tag push, protobuf:arm64-linux should build in minutes on the native arm64 runner (vs 3.2 hours under QEMU), and subsequent runs will skip rebuilding already-cached packages entirely.

@BewareMyPower BewareMyPower marked this pull request as draft June 1, 2026 12:44
@BewareMyPower
Copy link
Copy Markdown
Contributor Author

@BewareMyPower BewareMyPower self-assigned this Jun 2, 2026
@BewareMyPower BewareMyPower marked this pull request as ready for review June 2, 2026 02:23
@BewareMyPower BewareMyPower added this to the 4.2.0 milestone Jun 2, 2026
@shibd shibd merged commit 0378140 into apache:main Jun 2, 2026
14 checks passed
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-release-ci branch June 2, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] The build time on arm64 might take too long dockerbuild files are uploaded in "CI - Build binary artifacts" workflow

2 participants